﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Export;
using System.IO;

namespace Excel
{
	class Program
	{
		static void Main(string[] args)
		{
			var ra = new ExcelRAExportView()
			         	{
			         		Amount = "13.66",
			         		BillToAccount = "111",
			         		BillToName = "Anton",
			         		Currency = "BYR",
			         		Date = "5.12.2010",
			         		Description = "Bla-bla-bla",
			         		Number = "13",
			         		PayerAccount = "222",
			         		PayerName = "Vasya",
			         		Status = "Sent"
			         	};

			const string fileName = @"D:\TestExcel.xls";

			File.Delete(fileName);

			ExcelExport.SaveToExcelFile(ra, fileName);

			Console.WriteLine("Как бы Done!");
			Console.ReadLine();

		}
	}
}
